package com.netease.course.blog.dao;

import com.netease.course.blog.meta.Blog;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by yanfa on 2016/10/30.
 */
public interface BlogDao {

    @Select("SELECT * FROM Blog")
    public List<Blog> findAll();

    @Update("INSERT INTO Blog (blogTitle,blogContent) VALUES (#{param1}, #{param2})")
    public void save(String title,String content);
}
